package cloud.ben.smallscalepigfarmmanagementsystem.service.base;


import cloud.ben.smallscalepigfarmmanagementsystem.entity.base.Customer;
import cloud.ben.smallscalepigfarmmanagementsystem.utils.RespBean;

/**
 * @Author: Ben
 * @Date: 2022/3/27 20:57
 */
public interface ICustomerService {

    /**
     * 增加客户信息
     * @param customer
     * @return RespBean
     */
    RespBean insertCustomer(Customer customer);

    /**
     *根据id删除客户信息
     * @param id
     * @return RespBean
     */
    RespBean deleteCustomer(Integer id);

    /**
     * 修改客户信息
     * @param customer
     * @return RespBean
     */
    RespBean updateCustomer(Customer customer);

    /**
     * 分页查询客户信息
     * @param pageNumber
     * @param pageSize
     * @return RespBean
     */
    RespBean selectCustomerByPage(Integer pageNumber,Integer pageSize);

    /**
     *查询顾客数量（方便分页）
     * @return RespBean
     */
    RespBean selectCustomerNum();
}
